package com.mpyy.service;


import lombok.Getter;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Service;

/**
 * @PackageName:com.mpyy.service
 * @ClassName:ReadPropertyConfig
 * @Date:2022-02-23:11:14
 * @Author: Tang Neng
 */
@Getter
@Service
@ToString
@PropertySource(value = {"classpath:connmysql.properties"})
public class ReadPropertyConfig {
    @Value("${conn.driverClassName}")
    private String driverClassName;
    @Value("${conn.url}")
    private String url;
    @Value("${conn.username}")
    private String userName;
    @Value("${conn.password}")
    private String passWord;
}

